<?php
/**
 * Extdb
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://code.google.com/p/extdb/wiki/NewBSDLicence
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Extdb
 * @package    Extdb_Webservice
 * @copyright  Copyright (c) 2005-2008 ExtDb. (http://code.google.com/p/extdb/)
 * @license    http://code.google.com/p/extdb/wiki/NewBSDLicence New BSD License
 * @version    $Id: Exception.php 15 2009-07-29 21:45:57Z luke.richards.99 $
 */

/**
 * Class to implement the web service exception.
 *
 * @category   Extdb
 * @package    Extdb_Webservice
 * @copyright  Copyright (c) 2005-2008 ExtDb. (http://code.google.com/p/extdb/)
 * @license    http://code.google.com/p/extdb/wiki/NewBSDLicence New BSD License
 */
class Extdb_Webservice_Exception extends Extdb_Exception
{
    /**
     * Constructor
     *
     * @param string $message
     * @param int $code 
     * @return void
     */
    public function  __construct($message, $code = null)
    {
        if (empty($code)) {
            $code = Extdb_Exception::STATUS_SERVER_INTERNAL_SERVER_ERROR;
        }
        parent::__construct($message, $code);
    }
}